﻿#ifndef PAGE13_H
#define PAGE13_H
#include <QApplication>
#include <QWidget>
#include <QTableWidget>
#include <QHeaderView>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QLabel>
#include <QLineEdit>
#include <QComboBox>
#include <QPushButton>
#include <QtSql>
#include <QMessageBox>
#include<QDateEdit>
#include <QSqlTableModel>
#include <QWidget>
#include <QVBoxLayout>
#include <QtCharts/QChartView>
#include <QtCharts/QBarSet>
#include <QtCharts/QBarSeries>
#include <QtCharts/QBarCategoryAxis>
#include <QtCharts/QValueAxis>
#include <QtCharts/QChart>
#include "LocalDialog.h"
#include "RemoteDialog.h"

QT_CHARTS_USE_NAMESPACE
class Page13 : public QWidget
{
    Q_OBJECT

public:
    explicit Page13(QWidget* parent = nullptr);

    ~Page13();
private slots:
    void openLocalDialog();
    void openRemoteDialog();

signals:
    void pageRequested6();
    void orderRequested();
    void productionRequested();
    void storeRequested();
    void financeRequested();
    void changecondition();
    void addEmployeeRequested();
    void pageRequested10();
    void pageRequested13();
        void pageRequested1();

public slots:
    void financeHide();
    void signuphide();
    void generateCurrentDatabaseDataChart();
      void onFrontButtonClicked();


private:
    QPushButton* helpButton;
    QPushButton* orderButton;          // 订单按钮
    QPushButton* warehouseButton;      // 仓库按钮
    QPushButton* productionButton;     // 生产按钮
    QPushButton* financeButton;        // 财务按钮
    QPushButton* addButton;            // 新增订单按钮
    QPushButton* addEmployeeButton;    // 新增员工
    QPushButton*connectButton;//连接按钮
    void clearOldChart();
    QVBoxLayout *mainLayout;
    QChartView *chartView;


    LocalDialog *localDialog;
    RemoteDialog *remoteDialog;
    QPushButton *localButton;
    QPushButton *remoteButton;
        QPushButton*frontButton;

};

#endif // PAGE13_H
